package com.carol.lmsbe.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 设备报废实体类
 */
@Data
@TableName("equipment_scrap")
public class EquipmentScrap {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("equipment_id")
    private Long equipmentId;

    @TableField("scrap_date")
    private java.time.LocalDate scrapDate;

    @TableField("scrap_reason")
    private String scrapReason;

    @TableField("scrap_method")
    private String scrapMethod; // DISPOSAL-处置, SALE-出售, DONATION-捐赠

    @TableField("disposal_value")
    private java.math.BigDecimal disposalValue;

    @TableField("responsible_person")
    private String responsiblePerson;

    @TableField("approval_person")
    private String approvalPerson;

    @TableField("remark")
    private String remark;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
